/* style.css */
a {
    color: #007BFF; /* 蓝色链接 */
    text-decoration: none; /* 移除下划线 */
}

a:hover {
    color: #0056b3; /* 鼠标悬停时改变颜色 */
}

a:visited {
    color: #007BFF; /* 已访问链接的颜色 */
}

a:active {
    color: #004080; /* 点击时的颜色 */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    overflow: hidden;
}

.chat-container h1 {
    background-color: #007bff;
    color: #fff;
    padding: 15px;
    text-align: center;
}

#chat-box {
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
}

.message {
    margin-bottom: 10px;
}

.message .nickname {
    font-weight: bold;
    color: #007bff;
}

.message .text {
    display: inline-block;
    max-width: 500px;
    word-wrap: break-word;
}

.message .timestamp {
    font-size: 0.875em;
    color: #888;
    margin-left: 10px;
}

#message-form {
    display: flex;
    padding: 15px;
}

#message-form input[type="text"],
#message-form textarea {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-right: 10px;
    flex-grow: 1;
}

#message-form input[type="text"] {
    width: 150px;
    flex-grow: 0;
}

#message-form textarea {
    width: 100%;
    height: 75px;
    resize: none;
}

#message-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#message-form button:hover {
    background-color: #0056b3;
}


